import pytest
import os

from common.read_yml import readyml

yamlPath = os.path.dirname(__file__)+'/conf.yml'
data = readyml(yamlPath)

@pytest.fixture(scope='session')
def getHostAndProxies():
    host = data['host']
    proxies = data['proxies']
    return host,proxies

@pytest.fixture(scope='session')
def getDbInfo():
    dbinfo = data['db']
    return dbinfo
